﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace O.M.Production.Domain.Entity
{
    /// <summary>
    /// 质检管理表
    /// </summary>
[SugarTable("quality_inspection_management")]
    public class quality_inspection_management : BaseModel
    {
        /// <summary>
        /// 质检工单ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "质检工单ID", Length = 100)]
        public string quality_inspection_work_order_Id { get; set; }

        /// <summary>
        /// 质检工序ID
        /// </summary>
        //[SugarColumn(ColumnDescription = "质检工序ID", Length = 100)]
        //public string? qua_working_procedure_id { get; set; }

        /// <summary>
        /// 质检工单名称
        /// </summary>
        [SugarColumn(ColumnDescription = "质检工单名称", Length = 100)]
        public string? quality_inspection_work_order_name { get; set; }

        /// <summary>
        /// 来源工单
        /// </summary>
        [SugarColumn(ColumnDescription = "来源工单", Length = 100)]
        public string? source_work_order { get; set; }

        /// <summary>
        /// 生产产品
        /// </summary>
        [SugarColumn(ColumnDescription = "生产产品", Length = 100)]
        public string? production_product { get; set; }

        /// <summary>
        /// 质检部门
        /// </summary>
        [SugarColumn(ColumnDescription = "质检部门", Length = 100)]
        public string? quality_inspection_department { get; set; }

        /// <summary>
        /// 质检负责人
        /// </summary>
        [SugarColumn(ColumnDescription = "质检负责人", Length = 100)]
        public string? person_in_charge { get; set; }

        /// <summary>
        /// 工序数量
        /// </summary>
        [SugarColumn(ColumnDescription = "工序数量")]
        public int? process_quantity { get; set; }

        /// <summary>
        ///报工次数
        /// </summary>
        [SugarColumn(ColumnDescription = "报工次数")]
        public int? number_of_work_reports { get; set; }

        /// <summary>
        /// 质检次数
        /// </summary>
        [SugarColumn(ColumnDescription = "质检次数")]
        public int quality_inspection_times { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDescription = "备注", Length = 100)]
        public string? remarks { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        [SugarColumn(ColumnDescription = "附件", Length = 200)]
        public string? attachment { get; set; }
    }
}
